<template>
  <div class="dt_goods">
    <div class="dt_title">
      <div class="dt_t_1">商品详情</div>
      <div class="dt_t_2">评论</div>
    </div>
    <van-image v-html="datas.detail" />
  </div>
</template>

<script>
export default {
 data(){
   return{
     datas:{}
   }
 },
 created(){
   this.$eventBus.$on("getDetailGoodsInfo",res=>{
     //console.log(res)
     this.datas = res
   })
 }
}
</script>

<style>
.dt_title{
  height: 27px;
}
.dt_goods .dt_t_1{
  width: 50%;
  color: red;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  border-bottom: 2px solid red;
  float: left;
}
.dt_goods .dt_t_2{
  width: 50%;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  float: right;
}
.dt_goods img{
  display: block;
}
</style>